class ErrorController < ApplicationController

  def show
    if params[:id].nil? || params[:id] != '404'
			flash_general_error
      return
    end

    if params[:id] == '404'
      render :file => "#{RAILS_ROOT}/public/404.html", :status => 404
    end
  end

	protected
	def flash_general_error
    flash[:error] = 'An error occurred'
    render :action => 'index'
	end
end
